package com.zackratos.navbarexist.navbarexist

import android.view.View
import android.view.ViewGroup

/**
 * @Author   : zackratos
 * @Date     : 2021/8/23 1:55 下午
 * @email    : zhangwenchao@soulapp.cn
 * @Describe :
 */
internal inline val View.marginBottom: Int
    get() = (layoutParams as? ViewGroup.MarginLayoutParams)?.bottomMargin ?: 0

internal inline val View.marginRight: Int
    get() = (layoutParams as? ViewGroup.MarginLayoutParams)?.rightMargin ?: 0